package com.patterns.chain;

/**
 * 领导：总经理
 * @author huangke
 *
 */
public class GeneralManagerLeader extends Leader{

	public GeneralManagerLeader(String name) {
		super(name);
	}

	@Override
	public void handleRequest(LeaveRequest r) {
		if (r.getDays() <= 10) {
			System.out.println(this.name+":请假不超过10天，总经理批准");
		}else{
			System.out.println(this.name+":你小子是不是不想干了？不批!");
		}
	}

}
